<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>博客用户添加</title>
<style type="text/css">
ul li {
	list-style-type: none;
}

input {
	width: 200px;
	height: 30px;
}
</style>
</head>
<body>
	<form id="user-form" method="post">
		<h1>用户注册</h1>
		<span style="color: red">带*的为必填</span>
		<ul>
			<li>(✲)账号：<input type="text" name="account" /></li>
			<br />
			<li>(✲)密码：<input type="password" name="password" /></li>
			<br />
			<li>(✲)姓名：<input type="text" name="name" /></li>
			<br />
		</ul>
		<div>
			<button id="save" type="button"
				style="width: 80px; height: 35px; margin-right: 40px; margin-left: 110px">
				<a src="javascript:;">提交</a>
			</button>
			<button type="reset"
				style="width: 80px; height: 35px; margin-right: 60px;">取消</button>
		</div>
	</form>
	<script type="text/javascript" src="/static/js/jquery.min.js"></script>
	<script type="text/javascript">
	$(function(){
		$('#save').on('click',function(){
			$.post('/blog_register',$('#user-form').serialize(),function(data){
				alert(data);
				console.log(data);
				window.location='blog_login.html';
			});
		});
	});
	</script>
</body>
</html>